#include <jni.h>
#include <string>

extern "C"
JNIEXPORT jint JNICALL
Java_com_example_android_myapplication_NativePusher_add(JNIEnv *env, jobject instance, jint x,
                                                        jint y) {

    // TODO
    return x+y;
}

extern "C"
JNIEXPORT jstring JNICALL
Java_com_example_android_myapplication_MainActivity_stringFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    std::string hello = "Hello from C++";
    return env->NewStringUTF(hello.c_str());
}
